/**
 * import {selfScrollTo} from '../../utils/utils'
 * vue导入方式
 */
        // 1.传入的number参数是滚动条要去的位置，number是返回顶部
        function selfScrollTo(number=0,speed=8){
            let timer = setInterval(() => {
                let step = document.documentElement.scrollTop > number ? -speed : speed;
                document.documentElement.scrollTop += step;
                if (Math.abs(document.documentElement.scrollTop - number) > Math.abs(step)) {
                } else {
                    clearInterval(timer);
                }
            },1);
        }
